@define-mixin HeaderTheme $color, $fill {
  color: $(color);
  background: $(fill);
}

@name yt {
  @b header {
    position: relative;
    z-index: 10;
    height: 44px;
    padding-top: 22px;
    font-size: 0;
    color: #ffffff;
    background: var(--gradient_color);
    @m white {
      @mixin HeaderTheme #333333, #FFFFFF;
    }

    @m transparent {
      @mixin HeaderTheme #333333, transparent;
    }

    @when shadow {
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    @e text {
      line-height: 44px;
      font-size: 16px;
      text-align: center;
      overflow: hidden;
      padding: 0 60px;
      transition: opacity 300ms cubic-bezier(0.23, 1, 0.32, 1);
    }

    @e wrapper {
      display: flex;
      align-items: center;
      text-align: center;
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 44px;
    }

    @e center {
      flex: 1;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      overflow: hidden;
    }

    @e bar {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate3d(-50%, -50%, 0);
    }

    @e input {
      margin: 0 5px;
      transition: transform .3s cubic-bezier(.645, .045, .355, 1);
      @when origin-right {
        transform-origin: right top;
      }

      @when origin-left {
        transform-origin: left top;
      }

      @e enter, leave-active {
        opacity: 0;
        transform: scaleX(0)
      }
    }
  }

  @b headerBtn {
    display: inline-block;
    vertical-align: middle;
    @e icon {
      display: inline-block;
      vertical-align: middle;
      font-size: 24px;
      padding: 9px;
    }

    @e text {
      display: inline-block;
      vertical-align: middle;
      font-size: 16px;
      padding: 13px 10px;
    }

    @e img {
      display: inline-block;
      vertical-align: middle;
      width: 24px;
      height: 24px;
      padding: 9px;
    }

    @e avatar {
      margin: 0 2px 0 6px;
      display: inline-block;
      width: 40px;
      height: 40px;
      border-radius: 50%;
    }

    @e badge {
      position: absolute;
      right: 6px;
      top: 5px;
    }
  }
}
